//
//  CourseCell.m
//  easystudy
//
//  Created by kane on 15/6/11.
//  Copyright (c) 2015年 kane. All rights reserved.
//

#import "CourseCell.h"

@implementation CourseCell
@synthesize logoImgView,subjectLabel,scopeLabel,dateLabel;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        logoImgView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 79, 79)];
        [self.contentView addSubview:logoImgView];
        
        subjectLabel = [[UILabel alloc] initWithFrame:CGRectMake(92, 5, 220, 20.0)];
        subjectLabel.backgroundColor = [UIColor clearColor];
        subjectLabel.textColor = [UIColor blackColor];
        subjectLabel.font = [UIFont boldSystemFontOfSize:14.0];
        [self.contentView addSubview:subjectLabel];
        
        scopeLabel = [[UILabel alloc] initWithFrame:CGRectMake(92, 28, 220, 15)];
        scopeLabel.font = [UIFont systemFontOfSize:12.0];
        scopeLabel.textColor = [UIColor grayColor];
        scopeLabel.backgroundColor = [UIColor clearColor];
        scopeLabel.numberOfLines = 0;
        [self.contentView addSubview:scopeLabel];
        
        dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(92, 45, 220.0, 15)];
        dateLabel.textAlignment = NSTextAlignmentLeft;
        dateLabel.font = [UIFont systemFontOfSize:12.0];
        dateLabel.textColor = [UIColor grayColor];
        dateLabel.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:dateLabel];
    }
    
    return self;
}


@end
